# @Time : 2021/9/30 16:08
# @Author : Li Kunlun
# @Description : 为《中复神鹰碳纤维数据》绘制图像

import matplotlib.pyplot as plt

print("------------绘制y=x^2的线段----------------")
# 准备绘制的点
# x = [1, 2, 3, 4, 5]
# y = [1, 4, 9, 16, 25]

x = [38, 40, 42, 43, 45, 45.2, 47, 50]
y = [4.33, 4.28, 4.17, 4.07, 4.0, 3.9, 3.8, 3.7]
# 调用绘制方法
plt.plot(x, y, linewidth=3)
plt.savefig('strength01')
# 显示图
plt.show()
